home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / utility / hdos.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1992-01-05  |  2KB  |  66 lines

  1. @echo off
  2. cls
  3. rem --- make sure the user specified valid drive letter (we allow C to F).
  4. if %1a == a goto noDriveSpecified
  5. if %1 == c: goto begin
  6. if %1 == C: goto begin
  7. if %1 == d: goto begin
  8. if %1 == D: goto begin
  9. if %1 == e: goto begin
  10. if %1 == E: goto begin
  11. if %1 == f: goto begin
  12. if %1 == F: goto begin
  13. if %2 == a: goto floppy
  14. if %2 == A: goto floppy
  15. if %2 == b: goto floppy
  16. if %2 == B: goto floppy
  17. Goto notOnThatDrive
  18. :begin
  19.  
  20. echo ┌─┐
  21. echo │ │                ATI HandyDOS Software Installation
  22. echo │ │
  23. echo │I│  You may install the HandyDOS software anywhere you wish by simply
  24. echo │N│  creating a directory of your choice and then copying the files to
  25. echo │S│  it - except install.bat.
  26. echo │T│                       BUT! if you want:
  27. echo │A│  This will create a directory called %1\DOS  on your hard disk,
  28. echo │L│  and will install HandyDOS in that directory from this diskette.
  29. echo │L│  If you don't want to install HandyDOS right now, press Ctrl-Break.
  30. echo │ │
  31. echo └─┘
  32. pause
  33.  
  34. rem --- create \DOS  on the current drive.
  35. echo 
  36. echo Creating directory %1\DOS...
  37. md %1\DOS
  38. echo 
  39. echo Copying HandyDOS files...
  40. copy *.exe  %1\DOS
  41. copy readme.doc %1\DOS
  42. copy register %1\DOS
  43. echo                  * Target Disk Complete - Remove Disk*
  44. %1
  45. cd %1\DOS
  46. echo  HandyDOS is now installed!
  47. goto end
  48.  
  49. :noDriveSpecified
  50. rem --- user didn't specify a drive letter followed by a colon.
  51. echo 
  52. echo               How to use INSTALL: 
  53. echo  To install software on your hard disk, specify the drive to install HandyDOS 
  54. echo  onto.  For example, to install HandyDOS on drive C, type "INSTALL C:" and 
  55. echo  press Enter.
  56. goto end
  57.  
  58. :notOnThatDrive
  59. rem --- user specified invalid drive letter.
  60. echo 
  61. echo  Installation Error: The hard drive letter must be a letter from C to F,
  62. echo  and must be followed by a colon.  For example, "INSTALL C:" will install
  63. echo  HandyDOS on drive C.
  64. :end
  65. echo 
  66.